//
//  NetWorkingTools.swift
//  微博Swift
//
//  Created by apple on 15/9/23.
//  Copyright © 2015年 cc. All rights reserved.
//
/*
App Key：191396759
App Secret：bc795e89bfae2a03fc3d29f0de7b8cad

http://www.baidu.com

https://api.weibo.com/oauth2/authorize?client_id=191396759&redirect_uri=http://www.baidu.com

client_id
redirect_uri
*/

import UIKit

class NetWorkingTools: NSObject {

    static let sharedTools = NetWorkingTools()
    
    // 应用信息
    let appKey = "191396759"
    let appSecret = "Secret：bc795e89bfae2a03fc3d29f0de7b8cad"
    let redirectURL = "http://www.baidu.com"
    
    // -see:[https://api.weibo.com/oauth2/authorize?client_id=191396759&redirect_uri=http://www.baidu.com](https://api.weibo.com/oauth2/authorize?client_id=191396759&redirect_uri=http://www.baidu.com) 授权页面URL
    var oauthURL: NSURL {
        let urlStr = "https://api.weibo.com/oauth2/authorize?client_id=\(appKey)&redirect_uri=\(redirectURL)"
        print("url=\(urlStr)")
        return NSURL(string: urlStr)!
    }
}
